<div id="<?=$type?>"></div>

<?php if($type == "user_list"){?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:2px; margin-bottom:2px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="A.id_provinsi">Provinsi</option>
							<option value="A.id_kabupaten">Kabupaten</option>
							<option value="A.id_kecamatan">Kecamatan</option>
							<option value="A.id_kelurahan">Kelurahan</option>
							<option value="A.nama_wilayah">Nama Wilayah</option>
						</select>
			&nbsp;
                        Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>
			&nbsp;
                        <a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>
			
		</div>
	</div>
<?php }elseif($type == "user_level"){ ?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:3px; margin-bottom:3px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="A.id_group_dealer">Group Dealer</option>
							<option value="A.nama_dealer">Nama Dealer</option>
						</select>
			&nbsp;
			Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>
			
			<a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>
		</div>
	</div>
<?php }elseif($type == "user_group"){ ?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:3px; margin-bottom:3px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="A.id_group_supplier">Group Supplier</option>
							<option value="A.nama_supplier">Nama Supplier</option>
						</select>
			&nbsp;		
			Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>
			<a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>
		</div>
	</div>
<?php }elseif($type == "user_role"){ ?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:3px; margin-bottom:3px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="A.id_group_customer">Group Customer</option>
							<option value="A.nama_customer">Nama Customer</option>
						</select>
			&nbsp;
                        Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>
			<a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>		
		</div>
	</div>
<?php }elseif($type == "app_modules"){ ?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:3px; margin-bottom:3px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="A.id_group_dealer">Dealer</option>
							<option value="A.nama_gudang">Nama Gudang</option>
						</select>
			&nbsp;				
			Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>		
			<a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>		
		</div>
	</div>
<?php }elseif($type == "app_functions"){ ?>
	<div id="toolbar_<?=$type?>">  
		<div style="margin-top:3px; margin-bottom:3px; margin-left:3px; font-family:Arial, Helvetica, sans-serif;" id="tool_wilayah">
			Kategori : <select id="category_<?=$type?>" name="category" style="width:150px; border: 1px solid silver; padding: 1px;">
							<option value="">-- Select --</option>
							<option value="nm_dealer">Nama Dealer</option>
							<option value="nm_krywn">Nama Karyawan</option>
							<option value="agma">Agama</option>
							<option value="dvs">Divisi</option>
						</select>
			&nbsp;
                        Keyword : <input id="kywd" name="keyword" type="text" style="width:300px; border: 1px solid silver; padding: 1px;"/>
			<a id="find_<?=$type?>" class="l-btn l-btn-plain" href="#" onclick="" >
				<span class="l-btn-left">
					<span class="l-btn-text icon-search" style="padding-left: 20px;">Search</span>
				</span>
			</a>		
		</div>
	</div>
<?php }?>
<div>
<!-- Toolbar Bray -->
<div style="display:inline-block; border:1px solid #DDDDDD; border-radius: 3px 3px 3px 3px; margin-top:7px; padding:5px;width:99%">					
	<a href="#" onClick="del();" class="l-btn l-btn-plain" style="float:right;margin-right:5px;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-cancel">Delete</span>
		</span>
	</a>
		
	<a href="#" onClick="edit();" class="l-btn l-btn-plain" style="float:right;margin-right:5px;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-edit">Edit</span>
		</span>
	</a>		
		
	<a href="#" onClick="add();" class="l-btn l-btn-plain" style="float:right;margin-right:5px;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-add">Add</span>
		</span>
	</a>
</div>
</div>
<script>
	var type = "<?=$type?>";
	$('#find_'+type).css({'float':'right'});
</script>
<script type="text/javascript" src="<?=base_url()?>assets/js/setup/setup_tab.js"></script>

